home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Miscellany / MachineLocationObject.h < prev    next >
Text File  |  2000-06-23  |  823b  |  40 lines

  1. // MachineLocationObject.h
  2.  
  3. #ifndef MachineLocationObject_h
  4. #define MachineLocationObject_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. #include <OSUtils.h>
  11.  
  12. class MachineLocationObject: public MachineLocation
  13.   {
  14.     public:
  15.         MachineLocationObject()
  16.           { Get(); }
  17.     
  18.         static MachineLocationObject& The();
  19.         
  20.         void Get()                            { ReadLocation( this ); }
  21.         void Set() const                    { WriteLocation( this ); }
  22.         
  23.         Fract Latitude() const            { return latitude; }
  24.         Fract Longitude() const            { return longitude; }
  25.         
  26.         int32 SecondsEastOfGMT() const;
  27.         bool SavingDaylight() const;
  28.         
  29.         void SetLatitude( Fract x )    { latitude = x; }
  30.         void SetLongitude( Fract y )    { longitude = y; }
  31.  
  32.         void SetSecondsFromGMT( int32 );
  33.         
  34.         void SetSavingDaylight();
  35.         void ClearSavingDaylight();
  36.         void SetSavingDaylight( bool );
  37.   };
  38.  
  39. #endif
  40.